package me.zhengjie.modules.rest.intell;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.domain.intellectual.Trademark;
import me.zhengjie.modules.service.intell.TrademarkService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("企业商标信息")
@RestController
@RequiredArgsConstructor
@RequestMapping("/trade")
public class TrademarkController {

    private final TrademarkService trademarkService;

    @ApiOperation("根据企业名称查询企业商标信息")
    @AnonymousAccess
    @GetMapping("/queryTrademarkByName")
    public List<Trademark> queryTrademarkByName(String name){
        return trademarkService.selectTrademarkByName(name);
    }
}
